package com.test.qpbgboot.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ResultStatus {
    SUCCESS(2000,"成功"),

    FAILURE(3000,"失败"),
    USERNAME_EXISTS(3001,"用户名已被占用"),
    USERNAME_ERROR(3002,"用户名错误"),
    PASSWORD_ERROR(3003,"密码错误"),
    TRADE_FAILED(3004,"交易失败"),
    REPEAT_OPERATION(3005,"重复操作"),
    FREQUENT_OPERATIONS(3006,"操作过于频繁"),
    OBJECT_ALREADY_EXISTS(3007,"对象已存在"),
    INSUFFICIENT_BALANCE(3008,"余额不足"),
    EXPIRED_TOKEN(3009, "token已过期"),
    INVALID_TOKEN(3010,"无效token"),

    INVALID_ID(4000,"无效ID"),
    INCORRECT_FORMAT(4001,"请求参数格式不正确"),
    INCORRECT_CAPTCHA(4002,"验证码错误"),
    INCORRECT_STATUS(4003,"状态错误"),
    SIGNATURE_VERIFICATION_FAILED(4004,"验签失败"),
    ILLEGAL_ARGUMENT(4005,"参数错误"),

    DIRTY_DATA(5000,"脏数据"),
    SCHEDULE_NOT_ALLOWED(5001, "排班不允许")
    ;

    private Integer code;
    private String msg;
}
